package com.patMall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Author 750909637@qq.com
 * @PackageName patMall
 * @Package com.patMall.entity
 * @Date 2024/2/13 9:25
 * @Version 1.0
 */
public class BrowsingHistory {
    private Integer browsingHistoryId;
    private Integer userId;
    private Integer commodityId;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date browsingHistoryTime;
    private Commodity commodity;

    @Override
    public String toString() {
        return "BrowsingHistory{" +
                "browsingHistoryId=" + browsingHistoryId +
                ", userId=" + userId +
                ", commodityId=" + commodityId +
                ", browsingHistoryTime=" + browsingHistoryTime +
                ", commodity=" + commodity +
                '}';
    }

    public Integer getBrowsingHistoryId() {
        return browsingHistoryId;
    }

    public void setBrowsingHistoryId(Integer browsingHistoryId) {
        this.browsingHistoryId = browsingHistoryId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }

    public Date getBrowsingHistoryTime() {
        return browsingHistoryTime;
    }

    public void setBrowsingHistoryTime(Date browsingHistoryTime) {
        this.browsingHistoryTime = browsingHistoryTime;
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }
}
